Let's set up the game! We'll create a boundary below the stage so that we can tell when the ball goes past the paddle.

  • Choose a background from the section.
  • Go to and drag out Disable Floor.
  • Go to and drag out Rectangle. Change the name to bot_boundary.
  • Change the y-coordinate to -250. Set the width as 500 and the height as 5.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)